@extends('wap.layouts.master')
@section('title','我的球队')

@section('content')

<div class="aw-main aw-user aw-user-team">
	<div class="aw-team-null-btn aw-bg-fff aw-pb15">
		<div class="aw-mt5" v-if="user_info.team_admin==0"></div>
		<a v-if="user_info.team_admin==0" href="/wap/team/edit" class="aw-assest-btn aw-btn-radius aw-btn-bgcolor-lvse aw-mt0">创建队伍</a>
		<div class="aw-mt10" v-if="user_info.team_admin==0"></div>
		<div class="aw-mt5" v-if="user_info.team_admin!=1"></div>
		<a href="/wap/team/list" class="aw-assest-btn aw-btn-radius aw-btn-bordercolor-lvse aw-mt0">找队伍</a>
	</div>
	<ul class="aw-assest-user-list aw-mt10">
		<li class="aw-assest-user-list-li" v-for="(list,key) in list_page">
			<div class="aw-assest-li-img"><img :src="list.img ? list.img : '/img/default_160_160.png'" onerror="javascript:this.src='/img/default_160_160.png';"></div>
			<div class="aw-assest-li-conter aw-pr110">
				<p class="aw-mt10">@{{list.name}}<span v-if="list.is_admin==1" class="aw-assest-btn aw-assest-li-btn aw-btn-no1">队长</span></p>
			</div>
			<a :href="'/wap/team/info?team_id='+list.id" class="aw-assest-btn aw-btn-bordercolor-lvse aw-assest-li-btn">进入球队</a>
		</li>
	</ul>
	<vue-loding :info_page="info_page"></vue-loding>
</div>

@section('pagejs')
@parent

<script type="text/javascript" src="/wap/js/vue-loding.js"></script>
<script type="text/javascript">
var MJS_User_Info=GBC_User_Info;
var Vue_Data={
	user_info:MJS_User_Info,
	list_page:{},
	info_page:{page:1,count:0,tips:'球队'},
}
//我的球队列表
var AD_list_page={
	api:'/api/team/my-team-list',
	form_data:{},
	tips:false,
}
//获取分页列表-全局通用
Get_Refresh_Page_List()
vm=new Vue({
	el:'#Vue-body',
	data:Vue_Data,
	components:{
		'vue-loding':V_Assest_loding,
	},methods:{
		
	}
})
</script>
@endsection

@endsection

